@charset "UTF-8";

/************
 * Toolbars *
 ************/
%toolbar {
    -GtkWidget-window-dragging: true;
    padding: 4px;
    background-color: gtk("@theme_window_background_normal");
}

toolbar {
    @extend %toolbar;
    padding: 4px 3px 3px 4px;

    &:backdrop {
        background-color: gtk("@theme_window_background_backdrop");
        box-shadow: none;
    }

    button {
        margin: 2px;
        padding: 3px;
        &.image-button,
        &.text-button.image-button {
            padding: 3px;
        }
    }

    separator {
        margin-left: 3px;
        margin-right: 3px;
    }

    entry {
        margin: 3px;
    }

    // on OSD
    .osd & {
        background-color: transparent;
    }

    &.osd {
        padding: 13px;
        border: none;
        border-radius: $r;
        background-color: gtk("@theme_window_background_normal");

        &:backdrop {
            background-color: gtk("@theme_window_background_backdrop");
            box-shadow: none;
        }

        &.left,
        &.right,
        &.top,
        &.bottom {
            border-radius: 0;
        } // positional classes for `attached` osd toolbars
    }
}

//searchbar, location-bar & inline-toolbar
.inline-toolbar {
    @extend %toolbar;
    @extend %inset-bar;
    border-width: 0px 0px 1px 0px;
    padding: 3px;
    border-radius: 0;
}

searchbar,
.location-bar {
    @extend %toolbar;
    @extend %inset-bar;
    border-width: 0px 0px 1px 0px;
    padding: 3px;
}

%inset-bar {
    border-style: solid;
    border-color: gtk("@theme_window_border_normal");
    text-shadow: none;
    background-color: gtk("@theme_window_background_normal");
}